package info.liujiachen.security.test.service;

import org.springframework.security.core.GrantedAuthority;

public class JwtGrantedAuthority implements GrantedAuthority {

    private String authority;

    public JwtGrantedAuthority() {
    }

    public JwtGrantedAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "JwtGrantedAuthority{" +
                "authority='" + authority + '\'' +
                '}';
    }

}
